<?php            
  $client = mysql_fetch_object(mysql_query("SELECT * FROM client WHERE id = '". $this->userbooking->client_id ."'"));
  $room = mysql_fetch_object(mysql_query("SELECT * FROM room WHERE id = '".$this->userbooking->room_id."'"));
?>    
<section id="main" class="column">
            <!-- announcements -->  
            <article class="module width_full" style="width: 100%;" \>
            	  <header><h3>Ruimte Reserveren</h3></header>
            	<div class="module_content">
           			<fieldset>
                		<p>Hieronder vindt u meer informatie over de geselecteerde reservering</p>
               		</fieldset>
              </div>
             </article>
              
              <article class="module width_full" style="float:left; width:100%;">
            	<header><h3>Reserveringen</h3></header>
               
              <div class="detailbooking">
                <h2>Persoonsgegevens:</h2>    
                <h3>Naam:</h3>
                  <p><?=$client->name?></p>
                <h3>Adres:</h3>
                  <p><?=$client->address?></p>
                <h3>Email:</h3>
                  <p><?=$client->email?></p>
                <h3>Postcode:</h3>
                  <p><?=$client->postalcode?></p>
                <h3>Telefoonnummer</h3>
                  <p><?=$client->phonenumber?></p>
                <h2>Reserverings eigenschappen:</h2>
                <h3>Datum:</h3>
                  <p><?=$this->userbooking->date?></p>
                <h3>Dagdeel:</h3>
                  <p><?=$this->userbooking->partofday?></p>
                 <h3>Ruimte</h3>
                 <p><?=$room->name?></p> 
                 <hr />
                 <a href='mailto:"<?=$client->email?>"'>Email deze klant</a>
                 <a href="<?=$this->baseUrl()?>/administrator/bookings?accepted=<?=$this->userbooking->id?>">Accepteer deze reservering</a>
              </div>
            </article>